'use strict';
import React, {
    Component
} from 'react'
import {
    Link
} from 'react-router'
import Header from './Header'


export default class InfoDetail extends Component {
    constructor(props) {
        super(props)
    }
    componentDidMount() {
        //APP底部处理
        if (this.props.params.sign == 'share') {
            if (sessionStorage.app == 'true') {
                if (sessionStorage.wherefrom == 'ios') {
                    if (window.webkit)
                        webkit.messageHandlers.bottomBar.postMessage(0);
                } else {
                    if (window.appweb && window.appweb.bottomBar)
                        appweb.bottomBar(0)
                }
            }
        }
    }

    render() {
        const {
            title,
            url
        } = this.props.params
        return (
            <div id='commoniframe'>
                <Header title={title} />
                <iframe src={url}></iframe>
            </div>
        )
    }
}
